<p>this is the left navigator.</p>
<?php
if (empty($this->user))
{
?>
<p><a href="<?php echo $this->baseUrl.'/account/reg';?>">注册</a>
<a href="<?php echo $this->baseUrl.'/auth/login';?>">登录</a>
</p>
<?php
}
else
{
?>
<p>欢迎你, <img src="<?php echo $this->user['headshotUrl'];?>"><a href="<?php echo $this->baseUrl.'/account/index';?>"><?php echo $this->user['userName'];?></a>
<a href="<?php echo $this->baseUrl.'/friend/list';?>">好友</a>
<a href="<?php echo $this->baseUrl.'/friend/request';?>">好友请求</a>
<a href="<?php echo $this->baseUrl.'/account/updateprofile';?>">帐号</a>
<a href="<?php echo $this->baseUrl.'/account/logout/crumb/'.$this->user['crumb'];?>">退出</a>
</p>
<span id="usersitemsg"></span>
<?php
}
?>



